package com.vil.mapper;


import com.vil.entity.Complaint;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface ComplaintMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Complaint record);

    int insertSelective(Complaint record);

    Complaint selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Complaint record);

    int updateByPrimaryKey(Complaint record);
    
//    @Select("select count(1) from complaint where village=#{village}")
//    int isExist(@Param("village")String village);
    
    List<Complaint> getListByManyConditions(Complaint record);
    
//    List<Complaint> getListByManyConditions(String village);
    
  //批量删除
    int deleteMany(Long[] array);
}